package com.tjetc.mapper;

import com.tjetc.domain.Alternate;
import com.tjetc.vo.AlternateInfoVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AlternateMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Alternate record);

    int insertSelective(Alternate record);

    Alternate selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Alternate record);

    int updateByPrimaryKey(Alternate record);

    Alternate selectByPidAndSid(@Param("pid") Integer pid,@Param("scheduleId") Integer scheduleId);

    List<Alternate> selectBySid(Integer sid);

    List<AlternateInfoVo> getAlternateInfo(Integer id);
}